<?php echo'404';die();?>
{php}
$pattern="/<[img|IMG].*?src=[\'|\"](.*?(?:[\.gif|\.jpg|\.png]))[\'|\"].*?[\/]?>/";
$content = $article->Content;
preg_match_all($pattern,$content,$matchContent);
{/php}
{if $article->thumb2_count >3}
<li class="listpost_li">
	<h2><a href="{$article.Url}" title="{$article.Title}" {if $zbp->Config('ydbaijia')->target}target="_blank"{/if}>{$article.Title}</a></h2>
	<div class="moreimg">
		<a href="{$article.Url}" {if $zbp->Config('ydbaijia')->target}target="_blank"{/if}><img src="{if $zbp->Config('ydbaijia')->thumb2}{ydbaijia_thumb2($article,180,120,0)}{else}{$matchContent[1][0]}{/if}" alt="{$article.Title}"></a>
		<a href="{$article.Url}" {if $zbp->Config('ydbaijia')->target}target="_blank"{/if}><img src="{if $zbp->Config('ydbaijia')->thumb2}{ydbaijia_thumb2($article,180,120,1)}{else}{$matchContent[1][1]}{/if}" alt="{$article.Title}"></a>
		<a href="{$article.Url}" {if $zbp->Config('ydbaijia')->target}target="_blank"{/if}><img src="{if $zbp->Config('ydbaijia')->thumb2}{ydbaijia_thumb2($article,180,120,2)}{else}{$matchContent[1][2]}{/if}" alt="{$article.Title}"></a>
		<a href="{$article.Url}" {if $zbp->Config('ydbaijia')->target}target="_blank"{/if}><img src="{if $zbp->Config('ydbaijia')->thumb2}{ydbaijia_thumb2($article,180,120,3)}{else}{$matchContent[1][3]}{/if}" alt="{$article.Title}"></a>
	</div>
	{if $zbp->Config('ydbaijia')->listinfo}
	<div class="moreinfo">
		<span class="on"><a href="{$article.Category.Url}">{$article.Category.Name}</a></span>
		<span class="on">{if $zbp->Config( 'ydbaijia' )->timestyle=='1'}{$article.Time('m-d')}{else}{ydbaijia_TimeAgo($article.Time())}{/if}</span>
		<span>阅读({$article.ViewNums})</span>
		<span>{foreach $article.Tags as $tag}<a href="{$tag.Url}" title="{$tag.Name}" target="_blank">{$tag.Name}</a>{/foreach}</span>
	</div>
	{/if}
</li>
{elseif $article->thumb2_count > 2}
<li class="listpost_li">
	<h2><a href="{$article.Url}" title="{$article.Title}" {if $zbp->Config('ydbaijia')->target}target="_blank"{/if}>{$article.Title}</a></h2>
	<div class="moreimg">
		<a href="{$article.Url}" {if $zbp->Config('ydbaijia')->target}target="_blank"{/if}><img src="{if $zbp->Config('ydbaijia')->thumb2}{ydbaijia_thumb2($article,180,120,0)}{else}{$matchContent[1][0]}{/if}" alt="{$article.Title}"></a>
		<a href="{$article.Url}" {if $zbp->Config('ydbaijia')->target}target="_blank"{/if}><img src="{if $zbp->Config('ydbaijia')->thumb2}{ydbaijia_thumb2($article,180,120,1)}{else}{$matchContent[1][1]}{/if}" alt="{$article.Title}"></a>
		<a href="{$article.Url}" {if $zbp->Config('ydbaijia')->target}target="_blank"{/if}><img src="{if $zbp->Config('ydbaijia')->thumb2}{ydbaijia_thumb2($article,180,120,2)}{else}{$matchContent[1][2]}{/if}" alt="{$article.Title}"></a>
	</div>
	{if $zbp->Config('ydbaijia')->listinfo}
	<div class="moreinfo">
		<span class="on"><a href="{$article.Category.Url}">{$article.Category.Name}</a></span>
		<span class="on">{if $zbp->Config( 'ydbaijia' )->time=='1'}{$article.Time('m-d')}{else}{ydbaijia_TimeAgo($article.Time())}{/if}</span>
		<span>阅读({$article.ViewNums})</span>
		<span>{foreach $article.Tags as $tag}<a href="{$tag.Url}" title="{$tag.Name}" target="_blank">{$tag.Name}</a>{/foreach}</span>
	</div>
	{/if}
</li>
{elseif $article->thumb2_count > 1}
<li class="listpost_li">
	<h2><a href="{$article.Url}" title="{$article.Title}" {if $zbp->Config('ydbaijia')->target}target="_blank"{/if}>{$article.Title}</a></h2>
	<div class="moreimg">
		<a href="{$article.Url}" {if $zbp->Config('ydbaijia')->target}target="_blank"{/if}><img src="{if $zbp->Config('ydbaijia')->thumb2}{ydbaijia_thumb2($article,180,120,0)}{else}{$matchContent[1][0]}{/if}" alt="{$article.Title}"></a>
		<a href="{$article.Url}" {if $zbp->Config('ydbaijia')->target}target="_blank"{/if}><img src="{if $zbp->Config('ydbaijia')->thumb2}{ydbaijia_thumb2($article,180,120,1)}{else}{$matchContent[1][1]}{/if}" alt="{$article.Title}"></a>
	</div>
	{if $zbp->Config('ydbaijia')->listinfo}
	<div class="moreinfo">
		<span class="on"><a href="{$article.Category.Url}">{$article.Category.Name}</a></span>
		<span class="on">{if $zbp->Config( 'ydbaijia' )->time=='1'}{$article.Time('m-d')}{else}{ydbaijia_TimeAgo($article.Time())}{/if}</span>
		<span>阅读({$article.ViewNums})</span>
		<span>{foreach $article.Tags as $tag}<a href="{$tag.Url}" title="{$tag.Name}" target="_blank">{$tag.Name}</a>{/foreach}</span>
	</div>
	{/if}
</li>
{else}
<li class="listpost_li">
	<div class="img">
		<a href="{$article.Url}" {if $zbp->Config('ydbaijia')->target}target="_blank"{/if}><img src="{if $zbp->Config('ydbaijia')->thumb2}{ydbaijia_thumb2($article,180,120,0)}{else}{ydbaijia_thumbnail($article)}{/if}" alt="{$article.Title}"></a>
	</div>
	<div class="info">
		<h2><a href="{$article.Url}" {if $zbp->Config('ydbaijia')->target}target="_blank"{/if}>{$article.Title}</a></h2>
		{if $zbp->Config('ydbaijia')->listinfo}
		<div class="moreinfo">
			<span><a href="{$article.Category.Url}">{$article.Category.Name}</a></span>
			<span>{if $zbp->Config( 'ydbaijia' )->time=='1'}{$article.Time('m-d')}{else}{ydbaijia_TimeAgo($article.Time())}{/if}</span>
			<span>阅读({$article.ViewNums})</span>
			<span>{foreach $article.Tags as $tag}<a href="{$tag.Url}" title="{$tag.Name}" target="_blank">{$tag.Name}</a>{/foreach}</span>
		</div>
		{/if}
	</div>
</li>
{/if}